package cn.sylinx.hbatis.ext.starter.common;

import java.util.Properties;

class PropertiesEnvironment implements EnvironmentWrapper {

	private Properties p;

	public PropertiesEnvironment(Properties p) {
		this.p = p;
	}

	@Override
	public String getProperty(String key, String defaultValue) {
		return p.getProperty(key, defaultValue);
	}

	@Override
	public Object getSource() {
		return p;
	}

}
